package com.hera.process.config.dao;

import java.util.List;

import org.springframework.data.jpa.repository.Query;

import com.hera.base.dao.repository.BaseRepository;
import com.hera.process.workflow.domain.StageRollup;

public interface StageRollupDao extends BaseRepository<StageRollup, Long>{
	
	@Query("select entity from StageRollup entity where entity.stageFrom.swimlane.swimlanePK.idProcess = ?1")
	List<StageRollup> findStageRollupByProcessId(Long idProcess);
	//@Query("select entity from StageRollup entity where entity.stageFrom.swimlane.swimlanePK.idProcess = ?1 and entity.idFigure = ?2")
	List<StageRollup> findByIdProcessAndIdFigure(Long idProcess, String idFigure);
	

}
